package com.example.za407.myapplication;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.widget.Toast;

/**
 * Created by za407 on 2017/9/22.
 */
public class NotifyService extends Service {

    @Override
    public IBinder onBind(Intent arg0) {
        return null;
    }
public void onCreate(){
    MainActivity app = MainActivity.getApp();
    app.btEvent("from NotifyService");
    Toast.makeText(this, "这是系统自带的service", Toast.LENGTH_LONG).show();
}
}
